package com.youlu.campus.entity;

import lombok.Data;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
 * 证书活动配置
 */
@Data
public class CaActivityLevel {
    private String caLevelCode;
    private String caLevel;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;

        if (o == null || getClass() != o.getClass()) return false;

        CaActivityLevel that = (CaActivityLevel) o;

        return new EqualsBuilder()
                .append(caLevelCode, that.caLevelCode)
                .isEquals();
    }

    @Override
    public int hashCode() {
        return new HashCodeBuilder(17, 37)
                .append(caLevelCode)
                .toHashCode();
    }
}
